package io.hilo.example.account.dto.user;

import java.io.Serializable;
import java.util.List;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 添加新用户 请求类
 * </p>
 *
 * @author zollty
 * @since 2018-6-25
 */
public class AddUserReq implements Serializable {
    private static final long serialVersionUID = 975446656241559L;

    /**
     * 用户名
     */
    @NotBlank
    private String username;

    /**
     * 用户密码
     */
    private String password;

    /**
     * 邮箱
     */
    @Email
    @NotBlank
    private String email;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 创建人ID
     */
    @NotNull
    private Long createUserid;
    
    private Byte status;

    /**
     * 角色ID列表
     */
    private List<Long> roleIdList;

    public AddUserReq() {
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Long getCreateUserid() {
        return createUserid;
    }

    public void setCreateUserid(Long createUserid) {
        this.createUserid = createUserid;
    }
    
    /**
     * 获取状态  0：禁用   1：正常
     *
     * @return status - 状态  0：禁用   1：正常
     */
    public Byte getStatus() {
        return status;
    }

    /**
     * 设置状态  0：禁用   1：正常
     *
     * @param status 状态  0：禁用   1：正常
     */
    public void setStatus(Byte status) {
        this.status = status;
    }

    public List<Long> getRoleIdList() {
        return roleIdList;
    }

    public void setRoleIdList(List<Long> roleIdList) {
        this.roleIdList = roleIdList;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("AddUserReq [");
        builder.append("username=").append(username);
        builder.append(", password=").append(password);
        builder.append(", email=").append(email);
        builder.append(", mobile=").append(mobile);
        builder.append(", createUserid=").append(createUserid);
        builder.append(", roleIdList=").append(roleIdList);
        builder.append("]");
        return builder.toString();
    }

}
